const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app: any) {
  app.use(
    '/service',
    createProxyMiddleware({
      target: 'http://localhost:8000', // 将目标服务器的地址替换成实际的地址
      changeOrigin: true,
    })
  );
};